package com.fengniu.ejb.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name = "TagLogTable", schema = "FENGNIU", uniqueConstraints = {})
public class TagLog extends GeneEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2863561783661566943L;

	@ManyToOne
	User user;

	private String srcUrl;

	private String srcTitle;

	//用户给srcUrl网页打的标签，以空格隔开不同的标签
	private String srcTags;

	@OneToMany(cascade=CascadeType.ALL)
	List<TagLogLink> tagLogLinks = new ArrayList<TagLogLink>();

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getSrcUrl() {
		return srcUrl;
	}

	public void setSrcUrl(String srcUrl) {
		this.srcUrl = srcUrl;
	}

	public String getSrcTitle() {
		return srcTitle;
	}

	public void setSrcTitle(String srcTitle) {
		this.srcTitle = srcTitle;
	}

	public String getSrcTags() {
		return srcTags;
	}

	public void setSrcTags(String srcTags) {
		this.srcTags = srcTags;
	}

	public List<TagLogLink> getTagLogLinks() {
		return tagLogLinks;
	}

	public void setTagLogLinks(List<TagLogLink> tagLogLinks) {
		this.tagLogLinks = tagLogLinks;
	}


}
